<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
	<meta charset="<?php bloginfo('charset'); ?>" />
	<meta name="viewport" content="initial-scale=1.0, width=device-width" />
	<title><?php
		if ( is_single() ) { single_post_title(); }
		elseif ( is_home() || is_front_page() ) { bloginfo('name'); print ' | '; bloginfo('description'); get_page_number(); }
		elseif ( is_page() ) { single_post_title(''); }
		elseif ( is_search() ) { bloginfo('name'); print ' | Search results for ' . esc_html($s); get_page_number(); }
		elseif ( is_404() ) { bloginfo('name'); print ' | Not Found'; }
		else { bloginfo('name'); wp_title('|'); get_page_number(); }
	?></title>

<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css" type="text/css" media="screen, projection" />

<?php if ( is_front_page() ) { ?>
	<!-- front page css -->
	<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/homepage.css" type="text/css" media="screen, projection" />
<?php } ?>

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
	<div id="fb-root"></div>
		<script>(function(d, s, id) {
  		var js, fjs = d.getElementsByTagName(s)[0];
  		if (d.getElementById(id)) return;
  		js = d.createElement(s); js.id = id;
  		js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  		fjs.parentNode.insertBefore(js, fjs);
		}(document, 'script', 'facebook-jssdk'));
		</script>
<div id="wrapper" class="hfeed group">
    <header>
        <section id="masthead">
        	<nav id="access" class="group" role="navigation">
				<div class="skip-link"><a href="#content" title="<?php _e( 'Skip to content', 'spartans-speak' ) ?>"><?php _e( 'Skip to content', 'spartans-speak' ) ?></a></div>
					<?php wp_nav_menu( array( 
				'container' => 'div', /* default is 'div' */
				'container_class' => 'header-nav',
				'menu_class' => 'sf-menu group', 
				'theme_location' => 'primary-menu'
				) ); ?><!-- nav .header-nav -->
				
				<?php wp_nav_menu( array( 
				'container' => 'div', /* default is 'div' */
				'container_class' => 'mobile-nav',
				'menu_class' => 'nav', 
				'theme_location' => 'primary-menu'
				) ); ?><!-- nav .mobile-nav -->
            </nav><!-- #access -->
            <div id="branding" role="banner">
				<h1 id="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/logo.png" width="280" height="140" alt="NS Spartans Speak" /><?php // bloginfo( 'name' ); ?></a></h1>
				<!-- disabled for logo -->
					<!-- <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2> -->
            </div><!-- #branding -->         
        </section><!-- #masthead -->
    </header><!--header -->
              
    <div id="main" class="group"> 